package com.mouse.hxsj.view;

import com.mouse.damo.micro.Com;
import com.mouse.damo.micro.Sleep;
import com.mouse.haoi.service.CustomService;
import com.mouse.hxsj.service.ActionService;

import java.util.Calendar;
import java.util.Timer;
import java.util.TimerTask;

public class Test2 {
    public static void main(String[] args) {
        Calendar instance = Calendar.getInstance();
        instance.add(Calendar.HOUR_OF_DAY, 4);

        Com com1 = new Com();
        com1.bind(919418);
        ActionService.double2(com1);
        Sleep.sleep(200);
        ActionService.shenMu(com1,instance.getTime());
        new CustomService().loop(Integer.MAX_VALUE,() -> {
            ActionService.shengJi(com1);
            Sleep.sleep(5000);
            return false;
        });
    }
}
